﻿using System.Collections.Generic;

namespace Kaiser.Infrastructure.BootStrapperTask
{
    /// <summary>
    /// 引导程序
    /// </summary>
    public interface IBootStrapperTask
    {
        /// <summary>
        /// 执行引导程序
        /// </summary>
        /// <param name="bootStrapperState">引导程序状态</param>
        void Execute(IDictionary<string, object> bootStrapperState);

        /// <summary>
        /// 引导程序清理
        /// </summary>
        /// <param name="bootStrapperState">引导程序状态</param>
        void Cleanup(IDictionary<string, object> bootStrapperState);
    }
}
